package rmhc.gui
{
	import flash.events.MouseEvent;
	
	import rmhc.RMHCApp;
	import rmhc.design.Screen1Design;
	
	public class GreetScreen extends Screen1Design
	{
		//protected var scr:ScreenManager;
		protected var app:RMHCApp;
		
		public function GreetScreen()
		{
			super();
			app = RMHCApp.getApp();
			//scr = ScreenManager.getManager();
			btnAva.addEventListener( MouseEvent.CLICK , clickAva );
			btnPost.addEventListener( MouseEvent.CLICK , clickPost );
		}
		
		protected function clickAva( e:MouseEvent ):void
		{
			btnAva.mouseEnabled = false;
			
			//scr.showAvatar();
			app.showAvatarScreen();
		}
		protected function clickPost( e:MouseEvent ):void
		{
			btnPost.mouseEnabled = false;
			app.showPostScreen();
		}
	}
}